<?php
/**
 * Parameters
 * @param $member Member Members to be displayed
 * @param $organizational_unit OrganizationalUnit
 * @param boolean $checkboxes Whether checkboxes are visible or not
 * @param array $checked_checkboxes Array of member ids whose checkboxes are checked
 * @param integer $year
 */
?>
<?php $payed = $member->hasPayedMembershipFee($year);?>
					<tr>
						<?php if($checkboxes === true):?><td><input type="checkbox" name="ids[]" value="<?php echo $member->getId();?>"<?php if(in_array($member->getId(), $sf_data->getRaw('checked_checkboxes'))):?> checked="checked"<?php endif;?> /></td><?php endif;?>
						<td><?php include_partial('member/age_group_icon', array('member' => $member))?></td>
						<td><?php include_partial('member/gender_icon', array('member' => $member))?></td>
						<?php if($sf_user->hasCredential('member_payment_details')):?><td><?php include_partial('member/membership_fee_payment_icon', array('payed' => $payed, 'year' => $year))?></td><?php endif;?>
						<td><?php include_partial('member/woggle_icon', array('member' => $member))?></td>
						<td><?php echo $member->getLastName();?></td>
						<td><?php echo $member->getFirstName();?></td>
						<td>
							<a href="<?php echo url_for('member_show', array('sf_subject' => $member, 'unit' => $organizational_unit));?>"><img alt="Profil anzeigen" class="icon" src="<?php echo image_path('icons/content_mitglied_anzeigen.png')?>" title="Profil anzeigen" /></a>
							<a href="<?php echo url_for('member_edit', array('sf_subject' => $member, 'unit' => $organizational_unit));?>"><img alt="Profil bearbeiten" class="icon" src="<?php echo image_path('icons/content_subnavigation_bearbeiten.png')?>" title="Profil bearbeiten" /></a>
							<a href="<?php echo url_for('member_delete', array('sf_subject' => $member, 'unit' => $organizational_unit))?>" 
							  onClick="return confirm('Bist Du sicher, dass Du \'<?php echo $member->getFirstName();?> <?php echo $member->getLastName();?>\' l&ouml;schen m&ouml;chtest?');">
							  <img alt="Mitglied l&ouml;schen" class="icon" src="<?php echo image_path('icons/content_loeschen.png')?>" title="Mitglied l&ouml;schen" /></a>
						</td>
					</tr>